import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 关于rem,vue实现移动端适配方案 （amfe-flexible和postcss-pxtorem结合）
import 'amfe-flexible';

//vant导入所有组件
import Vant from 'vant';
import 'vant/lib/index.css';

// 依赖包： es5环境下使用es6
import 'babel-polyfill';
// if (!window.global || !window.global._babelPolyfill) {
//   require('babel-polyfill');
// }

import './css/public.less';
import command  from './untils/directives'

// 请求
import { post } from './untils/request/index';


const app = createApp(App);
app.config.globalProperties.$post = post;



// console.log("当前环境路径：",process.env.VUE_APP_URL)

createApp(App).use(store).use(router).use(command).use(Vant).mount('#app')
